﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace com.JummRaw
{
    public class JumpRaw : SingleBase<JumpRaw>, ICallAndroidBase
    {
        /// <summary>
        /// Initialize JumpSDK
        /// </summary>
        /// <param name="id">your slotID</param>
        public void Init(string id)
        {
            var D_AJC = new AndroidJavaClass("com.example.jumprawsdk.CallJumpRaw");
            var D_AJO = new AndroidJavaObject("com.jumpraw.wrap.JRWrap");

            if (D_AJC != null && D_AJO != null)
            {
                string D_CallBack = D_AJC.CallStatic<string>("Init",id);
                D_AJO.CallStatic("initialize",id);
                Debug.Log(D_CallBack);
            }
            else
            {
                Debug.Log("Find JumpSDK Error.");
            }
        }
    }
}
